<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Keywords" content="cssfile">
<meta name="Description" content="">
<meta name="format-detection" content="telephone=no" />
<meta property="wb:webmaster" content="ed0a75e93ed55263" />
<meta name="renderer" content="webkit">
<title> 好乐买 正品鞋</title>
<link rel="shortcut icon" href="http://0.js.lx.okbuycdn.com/resources/images/favicon.ico">
<link rel="stylesheet" type="text/css" href="{{asset('/HomeCss/css/login.css')}}">
<script type="text/javascript" src="{{asset('/HomeCss/js/jquery-1.9.0.js')}}"></script>
<script type="text/javascript" src="{{asset('/HomeCss/js/jquery.validate.js')}}"></script>
<script type="text/javascript" src="{{asset('/HomeCss/js/jquery.form.js')}}"></script>
<script type="text/javascript" src="{{asset('/HomeCss/js/miniheader.js')}}"></script>
<script type="text/javascript" src="{{asset('/HomeCss/js/inputstyle.js')}}"></script>
<script type="text/javascript" src="{{asset('/HomeCss/js/logincheck.js')}}"></script>
</head>
<body>
<div class="miniheader">
    <div class="miniheaderLeft"><a href="/"><img src="{{asset('/HomeCss/picture/miniheaderlogo.png')}}" alt='okbuy'></a></div>
	<div class="miniheaderMiddle" style="width:250px;float:left;margin:10px 0px 0px 300px;color:red;">
       @if(session('error'))
            <span>{{session('error')}}</span>
        @endif
    </div>
    <div class="miniheaderRight">
        <cite id="top_nologin" style="display: inline-block;">
    	<a href="/home/login/login" title="">登录</a><span>|</span>
		<a href="/home/login/regist" title="">注册</a>
    </div>
</div><!--[if IE 6]>
<script> document.execCommand("BackgroundImageCache", false, true); </script>
<![endif]-->
<div class="loginwarpper">
    <form class="find_1" id="getpwdform"  action="{{asset('/home/login/upupw')}}" method="post">
        {{csrf_field()}}
            <span><h1>重置密码</h1></span>
            <p class="email">请输入新密码：</p>
            <div class="login_txt">
                <input name="upw" id="pwd" value="" type="password" placeholder="请输入密码6-18位密码">
                <label id="upwError" class="error"></label>
                <input type="hidden" value="{{$uid}}" name="uid">
            </div>

            <p class="email">请确认新密码：</p>
            <div class="login_txt">
                <input name="reupw" id="repwd" value="" type="password" placeholder="请重新输入密码">
                <label id="reupwError" class="error"></label>
            </div>

        <button  class="next_btn" value="" id="next_btn" type="submit">下一步</button>
    </form>
    <div class="OB_clearB"></div>
</div> 
	<script type="text/javascript">
		new dk_slideplayer("#pub_slideplay",{width:"474px",height:"588px",time:"4000",float:"left"});
	</script><div class="OB_clearB"></div>
<div class="minifooter">Copyright © 2007-2017 OkBuy.com All Rights Reserved&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;天津好乐买信息技术有限公司&nbsp;&nbsp;津B2-20140020&nbsp;&nbsp;京公网安备&nbsp;110105006859</div>
<script type="text/javascript">
    //声明全局变量
    var UPW = false;
    var REUPW = false;
    //绑定表单事件
    $('form').submit(function(){
        
        //触发所有的丧失焦点事件
        $('input').trigger('blur');
        //判断是否全部成功
        if(UPW && REUPW){
            return true;
        }

        return false;
        
    })

    //绑定丧失焦点事件
    $('#pwd').blur(function(){
        //获取值
        var pwd = $('#pwd').val();
        //清除样式
        $('#upwError').html('');
        if(!pwd){
            $('#upwError').html('密码不能为空');
            UPW =  false;
        }else{
            var reg  = /\w{6,18}/;
            if(!reg.test(pwd)){
                $('#upwError').html('密码格式不正确');
                UPW = false;
            }else{
                 UPW = true;
            }
        }

    })
    
    //绑定丧失焦点事件
    $('#repwd').blur(function(){
        //获取值
        var repwd = $('#repwd').val();
        var pwd = $('#pwd').val();
        //清除样式
        $('#reupwError').html('');
        if(repwd != pwd){
           $('#reupwError').html('两次密码输入不一致'); 
           REUPW = false;
        }else{
            REUPW = true;
        }
    })

</script>
</body>

</html> 
